package com.inkyi.assistant.app.component.rsyntax.event;


import com.inkyi.assistant.app.component.rsyntax.RSyntaxTextConfig;
import com.inkyi.framework.common.event.InkActionEvent;


/**
 * 编辑器的监听事件
 */
public class RSyntaxTextEvent extends InkActionEvent {

    public static final String TYPE_DO_SAVE = "doSave";
    public static final String TYPE_DO_FAST_SAVE = "doFastSave";
    public static final String TYPE_DO_CREATE = "doCreate";

    /**
     * 数据
     */
    private String content;
    /**
     * 配置
     */
    private RSyntaxTextConfig config;

    public RSyntaxTextEvent(Object source, String type) {
        super(source, type);
    }

    public String getType() {
        return type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public RSyntaxTextConfig getConfig() {
        return config;
    }

    public void setConfig(RSyntaxTextConfig config) {
        this.config = config;
    }
}
